<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
        <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="../css/style.css"/>       
        <link href="../assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="../assets/css/ace.min.css" />
        <link rel="stylesheet" href="../font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="../js/jquery-1.9.1.min.js"></script>
        <script src="../assets/js/bootstrap.min.js"></script>
		<script src="../assets/js/typeahead-bs2.min.js"></script>           	
		<script src="../assets/js/jquery.dataTables.min.js"></script>
		<script src="../assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="../assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="../assets/laydate/laydate.js" type="text/javascript"></script>
<title>管理权限</title>
</head>
<body>
<br /><br />
	<form action="../user/update.do" method="post">
	<input type="hidden" name="id" value="${one.id }"/>
	<div style="margin-left: 100px">
		<table >
			<tr style="height: 70px">
				<td  width="60px">登陆名称:</td>
				<td width="200px"><input type="text" name="useraccount" value="${one.useraccount }"/></td>
				<td  width="60px" align="right">用户名称:</td>
				<td><input type="text" name="username" value="${one.username }"/></td>
			</tr>
			<tr  style="height: 70px">
				<td  width="60px">用户密码:</td>
				<td width="200px"><input type="text" name="userpassword" value="${one.userpassword }"/></td>
				<td width="60px" align="right">电话号码:</td>
				<td><input type="text" name="usermobile" value="${one.usermobile}"/></td>
			</tr>
			
			<tr style="height: 70px">
				<td  width="60px">创建时间:</td>
				<td  width="200px"><input type="text" onClick="laydate()" name="creattime" value="<fmt:formatDate value="${one.creattime }" pattern='yyyy-MM-dd'/>"/></td>
				<td width="60px" >公司职位:</td>
				<td > &nbsp;
				<select name="roleid" style="width: 160px">
		        	<option value="0" >---请选择---</option>
		        	<option value="2" <c:if test="${one.roleid == 2 }">selected="selected"</c:if>>管理员</option>
		        	<option value="1"<c:if test="${one.roleid == 1 }">selected="selected"</c:if>>业务员</option>
		        	<option value="3" <c:if test="${one.roleid == 3 }">selected="selected"</c:if>>项目经理</option>
        		</select>
        		</td>
			</tr>
			<tr>
				<td colspan="2" ><input type="submit" value="修改" style="width: 100px" class="btn btn-danger"/></td>
				<td colspan="2" ><a href="../user/toList.do" style="width: 100px" class="btn btn-danger">取消</a></td>
			</tr>
		</table>
	</div>
	</form>
</body>
<script>
;!function(){
laydate({
   elem: '#demo'
})
}();
</script>
</html>